package com.yang.service.admin;

import com.yang.bean.MarketTopic;
import com.yang.bean.common.BasePageInfo;
import com.yang.bean.common.BaseRespVo;
import com.yang.bean.common.CommonData;
import com.yang.bean.szy.BatchDeleteBO;
import com.yang.bean.szy.QueryTopicVo;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface AdminTopicService {
    BaseRespVo<CommonData<MarketTopic>> queryAllTopic(BasePageInfo info, String title, String subtitle);


    BaseRespVo<MarketTopic> createTopic(MarketTopic marketTopic);

    QueryTopicVo queryTopic(Integer id);

    BaseRespVo<MarketTopic> updateTopic(MarketTopic marketTopic);

    void deleteTopic(MarketTopic marketTopic);

    void deleteTopics(BatchDeleteBO batchDeleteBO);

    BaseRespVo<CommonData<MarketTopic>> relatedTopic(Integer id);

    CommonData list(Integer page, Integer limit);
}
